package com.xiaoxing.zhinenghuacangku_zhijian.di.module;

import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

import com.xiaoxing.zhinenghuacangku_zhijian.mvp.contract.FengQianLieBiaoContract;
import com.xiaoxing.zhinenghuacangku_zhijian.mvp.model.FengQianLieBiaoModel;


@Module
public class FengQianLieBiaoModule {
    private FengQianLieBiaoContract.View view;

    /**
     * 构建FengQianLieBiaoModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public FengQianLieBiaoModule(FengQianLieBiaoContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    FengQianLieBiaoContract.View provideFengQianLieBiaoView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    FengQianLieBiaoContract.Model provideFengQianLieBiaoModel(FengQianLieBiaoModel model) {
        return model;
    }
}